<nav aria-label="navigation">
    <ul class="pagination">
        <?php foreach($pageNumbers as $pageNumber) : ?>
        <li class="page-item <?php echo $pageNumber->getClass(); ?>">
            <a class="page-link" href="<?php echo $pageNumber->getHref(); ?>">
                <?php echo $pageNumber->getNumberString(); ?>
            </a>
        </li>
        <?php endforeach; ?>
      </ul>
</nav>